﻿using System.Windows;
using System.Windows.Controls;
using WebSilverlight.Web;

namespace WebSilverlight.Views
{
    public partial class ClientePrompt : ChildWindow
    {
        #region Properties
            public ClienteWrapper Selected { get; set; }
        #endregion

        public ClientePrompt()
        {
            InitializeComponent();
            if(this.dcClienteContext1 == null)
				this.dcClienteContext1 = new ClienteDomainContext();
        }
        private void SelectButton_Click(object sender, RoutedEventArgs e)
        {
            Selected = (ClienteWrapper)dataGridCliente1.SelectedItem;
            Close();
        }
    }
}